Skip to content

Update vcpkg SHA to match the C++ repo#2869

Merged
antkmsft merged 2 commits intoAzure:mainfrom
antkmsft:vcpkg-sha-2024-07
Jul 12, 2024
Merged

Update vcpkg SHA to match the C++ repo#2869
antkmsft merged 2 commits intoAzure:mainfrom
antkmsft:vcpkg-sha-2024-07

Conversation

@antkmsft
Copy link
Copy Markdown
Member

@antkmsft antkmsft commented Jul 12, 2024

SHA update: Same reason as for #2808, same SHA as in Azure/azure-sdk-for-cpp#5772.

Bug fix: I had to fix the CI warning, "warning C6396: sizeof('integerConstant') always returns the size of the underlying integer type.", and I noticed that in our code, sizeof('\0') is written with an epxectation that it will evaluate to 1. But this is one of the few things that are different between C and C++, see https://stackoverflow.com/questions/2172943/why-is-the-size-of-a-character-sizeofa-different-in-c-and-c.

@antkmsft antkmsft added the EngSys This issue is impacting the engineering system. label Jul 12, 2024
@antkmsft antkmsft self-assigned this Jul 12, 2024
… 4, but sizeof(int)).

See https://stackoverflow.com/questions/2172943/why-is-the-size-of-a-character-sizeofa-different-in-c-and-c

Fixes error C2220: the following warning is treated as an error
iot_sample_common.c(337): warning C6396: sizeof('integerConstant') always returns the size of the underlying integer type.
iot_sample_common.c(354): warning C6396: sizeof('integerConstant') always returns the size of the underlying integer type.
@antkmsft antkmsft merged commit 97b1b79 into Azure:main Jul 12, 2024
@antkmsft antkmsft deleted the vcpkg-sha-2024-07 branch July 12, 2024 19:24
@antkmsft antkmsft mentioned this pull request May 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

EngSys This issue is impacting the engineering system.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants